 class Dog {
    static int a =12;
    private String name;
    private int age;
    private String color;
     static int i = 1;
     int m = 10;
    static int ab;

    public Dog(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }
    public Dog() {
        ;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
    public void www() {
        System.out.println(this.name + "汪汪汪");
    }
    public void swag() {
        System.out.println(this.name + "摇尾巴");
    }
     {
         int x = 10 ;
         System.out.println("实例代码块被执行了》。。。");
     }
     static {
         System.out.println("静态代码块被执行了。。。");
     }

}
public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog();
      // System.out.println(dog.i);
        System.out.println(Dog.i);
        System.out.println(dog.m);//
    }
}

/*
public class Test {
    public static void main(String[] args) {
      */
/*  Dog dog = new Dog();
*//*

       // System.out.println(Dog.classroom);
       // System.out.println(dog.classroom);
      */
/*  System.out.println();*//*


       // dog.www();

    }

}
*/
/*
public class Test {
    public int aMethod(){
       int i = 0;
        i++;
        return i;
    }
    public static void main(String args[]){
        Test test = new Test();
        test.aMethod();
        int j = test.aMethod();
        System.out.println(j);
    }
}
*/
